package com.free.note.feign;

import com.free.common.core.pojo.FileInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Administrator
 */
@Service
@Component
//@FeignClient:微服务客户端注解,value:指定微服务的名字,这样就可以使Feign客户端直接找到对应的微服务
@FeignClient(value = "file" )
public interface FileClientService {

    /**
     * 删除文件
     *
     * @param fileName
     */
    @PostMapping("/delete" )
    Object delete(FileInfo fileInfo);

}
